Add test cases for bug 1188 and bug 1936: subst problems
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 20 Apr 2005 22:09:28 +0000 (22:09 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 20 Apr 2005 22:09:28 +0000 (22:09 +0000)
maintenance/parserTests.txt

index 09c1d82..c3a730b 100644 (file)
@@ -1430,6 +1430,41 @@ pst
 This is a test template with parameter "something else"
 !! end
 
+
+!! article
+Template:nowikitest
+!! text
+<nowiki>'''not wiki'''</nowiki>
+!! endarticle
+
+!! test
+pre-save transform: nowiki in subst (bug 1188)
+!! options
+pst
+!! input
+{{subst:nowikitest}}
+!! result
+<nowiki>'''not wiki'''</nowiki>
+!! end
+
+
+!! article
+Template:commenttest
+!! text
+This template has <!-- a comment --> in it.
+!! endarticle
+
+!! test
+pre-save transform: comment in subst (bug 1936)
+!! options
+pst
+!! input
+{{subst:commenttest}}
+!! result
+This template has <!-- a comment --> in it.
+!! end
+
+
 ###
 ### Message transform tests
 ###